package com.bjsxt.chapter8_composit;

/**
 * @ClassName ImageFile
 * @Description 图像文件
 * @Author 黑马程序员
 * @Date 10:43 2024/6/22
 * @Version 1.0
 **/
public class ImageFile implements AbstractFile{

    private String name;

    public ImageFile(String name) {
        this.name = name;
    }

    @Override
    public void killVirus() {
        System.out.println("---图像文件: " + name + ",进行查杀!");
    }
}
